import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/resouce/admin/list',
    method: 'get',
    params: query
  })
}
export function deleteById(data) {
  return request({
    url: '/resouce/admin/deleteById',
    method: 'post',
    data: data
  })
}

export function save(data) {
  return request({
    url: '/resouce/admin/save',
    method: 'post',
    data: data
  })
}

export function updateById(data) {
  return request({
    url: '/resouce/admin/updateById',
    method: 'post',
    data: data
  })
}